<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link href="{ADMIN_THEME}images/reset.css" rel="stylesheet" type="text/css" />
    <link href="{ADMIN_THEME}images/system.css" rel="stylesheet" type="text/css" />
    <link href="{ADMIN_THEME}images/dialog.css" rel="stylesheet" type="text/css" />
    <link href="{ADMIN_THEME}images/switchbox.css" rel="stylesheet" type="text/css" />
    <link href="{ADMIN_THEME}luos/css/style.min.css?v=4.1.0" rel="stylesheet"><link href="{ADMIN_THEME}images/table_form.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="{ADMIN_THEME}js/jquery.min.js"></script>
    <script type="text/javascript" src="{ADMIN_THEME}js/dialog.js"></script>
    <script type="text/javascript">
        var sitepath = '{SITE_PATH}{ENTRY_SCRIPT_NAME}';
        var finecms_admin_document = "{$cats[$data['catid']]['setting']['document']}";
    </script>
    <script type="text/javascript" src="{LANG_PATH}lang.js"></script>
    <script type="text/javascript" src="{ADMIN_THEME}js/core.js"></script>
    <link rel="stylesheet" href="{ADMIN_THEME}js/layui/css/layui.css">
    <script src="{ADMIN_THEME}js/layui/lay/dest/layui.all.js"></script>
    <script type="text/javascript">
        function ajaxletter() {
            var letter = $('#letter').val();
            if (letter == '') {
                $.post(sitepath+'?c=api&a=pinyin&id='+Math.random(), { name:$('#name').val() }, function(data){ $('#letter').val(data); });
            }
        }
    </script>
    <script type="text/javascript">
        $(function() {
            dr_set_type('{$data["type"]}');
        });

        function dr_set_type(v) {
            $(".dr_hide").hide();
            $(".dr_"+v).show();
        }

        function resources_on(){
            $('#resources').show();
            $('#content').hide();
        }
        function resources_off(){
            $('#resources').hide();
            $('#content').show();
        }
        function app_on(){

        }
        function app_off(){

        }
    </script>
    <title>admin</title>
</head>
<body style="font-weight: normal;">
<div class="subnav">
    <div class="content-menu ib-a line-x">
    <div class="layui-btn-group">   
            <!-- <a class="layui-btn" href="{url('admin/wx/config')}"><em>微信配置</em></a> 
            
            <a class="layui-btn" href="{url('admin/wx/welcome')}" class="on"><em>关注发送</em></a> -->
        </div>
    </div>
    <div class="bk10"></div>
    <div class="table-list">
        <form action="" method="post"  onsubmit="return sumbit()">
          
            <table width="100%" class="table_form">
                <tr id="content">
                    <th width="200">
                        图片1：
                    </th>
                    <td colspan="3"><input type="text" class="input-text" size="50" value="{$res['pic_photo3']}" name="photo3" id="picture" />
                    <input type="button" style="width:66px;cursor:pointer;" class="btn btn-success btn-sm" onClick="preview('picture')" value="{lang('a-mod-118')}" />
                    <input type="button" style="width:66px;cursor:pointer;" class="btn btn-success btn-sm" onClick="uploadImage('picture', '{$SITE_THUMB_WIDTH}', '{$SITE_THUMB_HEIGHT}')" value="{lang('a-mod-119')}" />
                       
                    </td>
                </tr>
                <tr id="content">
                    <th width="200">
                        图片2：
                    </th>
                    
                       <td colspan="3"><input type="text" class="input-text" size="50" value="{$res['pic_photo2']}" name="photo2" id="picturea" />
                    <input type="button" style="width:66px;cursor:pointer;" class="btn btn-success btn-sm" onClick="preview('picturea')" value="{lang('a-mod-118')}" />
                    <input type="button" style="width:66px;cursor:pointer;" class="btn btn-success btn-sm" onClick="uploadImage('picturea', '{$SITE_THUMB_WIDTH}', '{$SITE_THUMB_HEIGHT}')" value="{lang('a-mod-119')}" />
                    </td>
                </tr>
                <tr id="content">
                    <th width="200">
                        图片3：
                    </th>
                    <td colspan="3"><input type="text" class="input-text" size="50" value="{$res['pic_photo1']}" name="photo1" id="pictureb" />
                    <input type="button" style="width:66px;cursor:pointer;" class="btn btn-success btn-sm" onClick="preview('pictureb')" value="{lang('a-mod-118')}" />
                    <input type="button" style="width:66px;cursor:pointer;" class="btn btn-success btn-sm" onClick="uploadImage('pictureb', '{$SITE_THUMB_WIDTH}', '{$SITE_THUMB_HEIGHT}')" value="{lang('a-mod-119')}" />
                    </td>
                    </td>
                </tr>
                <tr>
                    <th></th>
                    <td>
                        <input  class="btn btn-success btn-sm" type="submit" name="submit"  value="提交修改" size="80">
                    </td>
                </tr>
            </table>
        </form>
    </div>
</div>
</body>
<script>
function sumbit() {
    var data=confirm("确定要修改?");
    var pic_photo3 = $("input[name='photo3']").val();
    var pic_photo2 = $("input[name='photo2']").val();
    var pic_photo1 = $("input[name='photo1']").val();
        if (data==true){  
            if (pic_photo3== '' || pic_photo2== '' || pic_photo1 == '') {
                alert('图片不能为空！');
                return false;
            }else{
                return true;
            }
        }else{  
            return false;  
        } 
}

$('#court_provice_id').change(function(){
    var provice_id = $(this).val();
    $.ajax({
        'url':'index.php?s=admin&c=Group_team&a=get_city_ajax',
        'type':'post',
        'dataType':'json',
        'async':false,
        'data':{
            'provice_id':provice_id
        },
        success:function(data){
            var str = '';
            for (var i = 0; i < data.res.length; i++) {
                str += '<option value="'+data.res[i].id+'">'+data.res[i].name+'</option>';
            }
            $('#court_city_id').html(str);
        }
    })
})



</script>
</html>